package org.example.order.VO;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.Data;


@Data
public class RegisterVO {
    @NotBlank(message = "用户名不能为空")
    @Size(min=1,max=20,message = "用户名应在1-20字符之间")
    private String username;
    @NotBlank(message = "密码不能为空")
    @Size(min=6,max=20,message = "密码长度应该在6-20之间")
    private String password;
    private String nickname;
    @NotBlank(message = "密码不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确（1（3-9）（0-9）^9）")
    private String phone;
}
